home *** CD-ROM | disk | FTP | other *** search
/ Software of the Month Club 2000 October / Software of the Month - Ultimate Collection Shareware 277.iso / pc / PROGRAMS / UTILITY / WINLINUX / DATA1.CAB / programs_-_include / NET / IRDA / DONGLE.H < prev    next >
C/C++ Source or Header  |  1999-09-17  |  2KB  |  50 lines

  1. /*********************************************************************
  2.  *                
  3.  * Filename:      dongle.h
  4.  * Version:       
  5.  * Description:   
  6.  * Status:        Experimental.
  7.  * Author:        Dag Brattli <dagb@cs.uit.no>
  8.  * Created at:    Wed Oct 21 22:47:12 1998
  9.  * Modified at:   Sat Feb  6 07:37:49 1999
  10.  * Modified by:   Dag Brattli <dagb@cs.uit.no>
  11.  * 
  12.  *     Copyright (c) 1998 Dag Brattli, All Rights Reserved.
  13.  *      
  14.  *     This program is free software; you can redistribute it and/or 
  15.  *     modify it under the terms of the GNU General Public License as 
  16.  *     published by the Free Software Foundation; either version 2 of 
  17.  *     the License, or (at your option) any later version.
  18.  *  
  19.  *     Neither Dag Brattli nor University of Troms° admit liability nor
  20.  *     provide warranty for any of this software. This material is 
  21.  *     provided "AS-IS" and at no charge.
  22.  *     
  23.  ********************************************************************/
  24.  
  25. #ifndef DONGLE_H
  26. #define DONGLE_H
  27.  
  28. #include <net/irda/qos.h>
  29. #include <net/irda/irda_device.h>
  30.  
  31. /* These are the currently known dongles */
  32. typedef enum {
  33.     TEKRAM_DONGLE,
  34.     ESI_DONGLE,
  35.     ACTISYS_DONGLE,
  36.     ACTISYS_PLUS_DONGLE,
  37.     GIRBIL_DONGLE,
  38. } DONGLE_T;
  39.  
  40. struct dongle {
  41.     DONGLE_T type;
  42.     void (*open)(struct irda_device *, int type);
  43.     void (*close)(struct irda_device *);
  44.     void (*reset)( struct irda_device *, int unused);
  45.     void (*change_speed)( struct irda_device *, int baudrate);
  46.     void (*qos_init)( struct irda_device *, struct qos_info *);
  47. };
  48.  
  49. #endif
  50.